package collections

/**
 *@author LikeYouDo
 *@date 2024/12/13 08:45
 */
fun main() {
    val fruitsBag = listOf("apple", "orange", "banana", "grapes")  // 1
    val clothesBag = listOf("shirts", "pants", "jeans")
    val cart = listOf(fruitsBag, clothesBag)
    println(cart.map { it })
    println(cart.flatMap { it })
    println(cart.flatten())
}